﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using GanagroLiteBO;


namespace GanagroLite
{
    public partial class FormParametros : GanagroLite.WinPart
    {
        public FormParametros()
        {
            InitializeComponent();
        }

        #region Internal methods

        protected internal override object GetIdValue()
        {
            return "Form Parametros" ;
        }

        public override string ToString()
        {
            return "Parametros";
        }

        #endregion

        private void FormParametros_Load(object sender, EventArgs e)
        {
            this.bindingSourceMain.DataSource = new Parametros();
        }

        private void btnGuardar_Click(object sender, EventArgs e)
        {
            ((Parametros)bindingSourceMain.DataSource).Guardar();
            utilities.MaximoDiasOperacionValida = 0;
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            this.bindingSourceMain.CancelEdit();
            this.Close();
        }

    }
}
